import Vue from 'vue'
import Router from 'vue-router'
//import HelloWorld from '@/components/HelloWorld'
//import index from '@/components/index'
import register from '@/components/register'
import wealthMain from '../modules/wealthCenter/page/wealthMain.vue'
import takeCash from '../modules/wealthCenter/page/takeCash.vue'
import userEdit from '@/modules/user/page/userEdit.vue'
import transactionDetail from '@/modules/transactionDetail/page/transactionDetail.vue'
import perfectInfor from '@/modules/perfectInfor/page/perfectInfor.vue'
import topUp from '@/modules/topUp/page/topUp.vue'
import investRegularly from '@/modules/investRegularly/page/investRegularly.vue'
import investment from '@/modules/investment/page/investment.vue'

Vue.use(Router)

export default new Router({
    routes: [
        {path: '/', name: 'index', component: wealthMain,meta:{title:'首页'}},
        {path: '/register',name:'register', component: register,meta:{title:'员工福利系统'}},
        {path: '/wealthMain',name:'wealthMain', component: wealthMain,meta:{title:'中心'}},
        {path: '/takeCash',name:'takeCash', component: takeCash,meta:{title:'提現'}},
        {path: '/userEdit',name:'userEdit', component: userEdit,meta:{title:'修改密码'}},
        {path: '/transactionDetail',name:'transactionDetail', component: transactionDetail,meta:{title:'交易明细'}},
        {path: '/perfectInfor',name:'perfectInfor', component: perfectInfor,meta:{title:'完善信息'}},
        {path: '/topUp',name:'topUp', component: topUp,meta:{title:'充值'}},
        {path: '/investRegularly',name:'investRegularly', component: investRegularly,meta:{title:'定期投资详情'}},
        {path: '/investment/:id',name:'investment', component: investment,meta:{title:'投资定期'}}
    ]
})
